package com.huluobo.a2112mvvmdouyindemo.mine;

import androidx.lifecycle.MutableLiveData;

import com.huluobo.mvvm_base.bean.UserBeanResult;
import com.huluobo.mvvm_base.viewmodel.BaseViewModel;

/**
 * Created by LC on 2024/4/10.
 */
public class MineViewModel extends BaseViewModel<MineRepo> {

    MutableLiveData<UserBeanResult.UserBean> success = new MutableLiveData<>();

    MutableLiveData<String> failed = new MutableLiveData<>();

    public void getUserInfo(String username) {
        repo.getUserInfo(username, success, failed);
    }

    @Override
    protected MineRepo createRepo() {
        return new MineRepo();
    }
}
